<%if(@is_admin)%>
<%form_for(item, :url => {:action => 'update', :controller => 'admin/orders', :method => 'post'}) do |f|%>
	<tr>
		<td><%=link_to item.product_id.to_s, edit_admin_products_path(:id => item.product_id)%></td>
		<td><%=item.quantity%></td>
		<td><%=f.select(:shipped_quantity, item.get_selection_quantities(), {:selected => item.shipped_quantity},{:onchange => 'this.form.submit()'})%></td>
		<td><%=format_price(item.original_price)%></td>
		<td><%=item.show_stock%></td>
	</tr>
	<%=f.hidden_field(:item_id, :value => item.id)%>
<%end%>
<%end%>